<?php

/**
 * This file is part of ossecdb-extjs.
 * 
 * Copyright (C) 2011 Brendan Johnston
 * 
 * Contact: brendan@johnston.net.au
 * 
 * Project: http://code.google.com/p/ossecdb-extjs/
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 */

$config = array(
	
	// At present only mysql is supported.
	'db_type'					=> 'mysql',

	// Configure database connection. Please see PDO manual for details: http://php.net/manual/en/book.pdo.php
	// For security reasons, it is strongly recommended that this account is granted SELECT privileges only.
	'pdo_dsn'					=> 'mysql:host=your_mysql_server;dbname=your_database',
	'pdo_username'				=> 'your_username',
	'pdo_password'				=> 'your_password',
	'pdo_driver_options'		=> null,

	// For security reasons, it is strongly recommended that 'auth_required' is set to true. Please read "/README.txt" for details.
	'auth_required'				=> true,
	'auth_variable'				=> 'REMOTE_USER',

	// Requires alteration to database schema. Please read "/sql/geolocation-maxmind.sql" fully, before setting this to true.
	'geolocation_enabled'		=> false,
	'geolocation_method'		=> 'maxmind_geolitecity_trigger',
	'geolocation_country_codes'	=> 'ISO3166',

	// Path to Ext JS 4 library, Please visit Sencha for details: http://www.sencha.com
	// For security reasons, it is recommended that you consider hosting Ext JS library yourself.
	'extjs_path'				=> 'http://cdn.sencha.io/ext-4.0.2',

	// Presentation of dates, See Ext.Date documentation for details: http://docs.sencha.com/ext-js/4-0/#/api/Ext.Date
	// North Americans might prefer 'm/d/Y h:i:s A'
	'extjs_date_format'			=> 'd/m/Y h:i:s A'
);

?>